package com.squirrel.common.param.comment;

import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import javax.validation.constraints.NotBlank;

/**
 * @Description CommentParam 评论参数
 * @Author 关远键
 * @Version v1.0.0
 * @Date 2021/11/24 9:19
 */
@Data
@ApiModel("评论参数")
public class CommentParam {

    @ApiModelProperty(value = "视频ID", required = true)
    @NotBlank(message = "视频ID不能为空")
    private Integer videoId;

    @ApiModelProperty(value = "用户ID", required = true)
    @NotBlank(message = "用户ID不能为空")
    private Integer userId;

    @ApiModelProperty(value = "评论内容", required = true)
    @NotBlank(message = "评论内容不能为空")
    private String commentContent;

    @ApiModelProperty(value = "回复评论的ID（顶级评论-1）", required = true)
    @NotBlank(message = "不能为空")
    private Integer commentParentId;

}
